﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SalePartial.Model;
using System.Data;
using System.Data.SqlClient;

namespace SalePartial.IDAL
{
    public interface IXPRating
    {
        int Delete(Guid RatingID);

        //<DataObjectMethod(DataObjectMethodType.Delete)> _
        int DeleteDynamic(string v_whereCondition);

        //<DataObjectMethod(DataObjectMethodType.Insert)> _
        int Insert(XPRatingInfo info);

        //<DataObjectMethod(DataObjectMethodType.Select)> _
        DataSet SelectAll();

        //<DataObjectMethod(DataObjectMethodType.Fill)> _
        DataSet SelectDynamic(string v_whereCondition, string v_orderByExpression);

        //<DataObjectMethod(DataObjectMethodType.Fill)> _
        DataSet SelectPaged();

        //<DataObjectMethod(DataObjectMethodType.Select)> _
        SqlDataReader SelectReader(Guid RatingID);

        //<DataObjectMethod(DataObjectMethodType.Select)> _
        DataSet SelectSingle(Guid RatingID);

        //<DataObjectMethod(DataObjectMethodType.Update)> _
        int Update(XPRatingInfo info);

    }
}
